package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PrePlanItemsMapper;
import com.ruoyi.system.domain.PrePlanItems;
import com.ruoyi.system.service.IPrePlanItemsService;

/**
 * 预案事项Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-18
 */
@Service
public class PrePlanItemsServiceImpl implements IPrePlanItemsService 
{
    @Autowired
    private PrePlanItemsMapper prePlanItemsMapper;

    /**
     * 查询预案事项
     * 
     * @param id 预案事项主键
     * @return 预案事项
     */
    @Override
    public PrePlanItems selectPrePlanItemsById(Long id)
    {
        return prePlanItemsMapper.selectPrePlanItemsById(id);
    }

    /**
     * 查询预案事项列表
     * 
     * @param prePlanItems 预案事项
     * @return 预案事项
     */
    @Override
    public List<PrePlanItems> selectPrePlanItemsList(PrePlanItems prePlanItems)
    {
        return prePlanItemsMapper.selectPrePlanItemsList(prePlanItems);
    }

    /**
     * 新增预案事项
     * 
     * @param prePlanItems 预案事项
     * @return 结果
     */
    @Override
    public int insertPrePlanItems(PrePlanItems prePlanItems)
    {
        return prePlanItemsMapper.insertPrePlanItems(prePlanItems);
    }

    /**
     * 修改预案事项
     * 
     * @param prePlanItems 预案事项
     * @return 结果
     */
    @Override
    public int updatePrePlanItems(PrePlanItems prePlanItems)
    {
        return prePlanItemsMapper.updatePrePlanItems(prePlanItems);
    }

    /**
     * 批量删除预案事项
     * 
     * @param ids 需要删除的预案事项主键
     * @return 结果
     */
    @Override
    public int deletePrePlanItemsByIds(Long[] ids)
    {
        return prePlanItemsMapper.deletePrePlanItemsByIds(ids);
    }

    /**
     * 删除预案事项信息
     * 
     * @param id 预案事项主键
     * @return 结果
     */
    @Override
    public int deletePrePlanItemsById(Long id)
    {
        return prePlanItemsMapper.deletePrePlanItemsById(id);
    }
}
